package org.ctd.springframework.beans.factory;

import org.ctd.springframework.beans.exception.bean.BeansException;

/**
 * beanFactory
 * spring bean的顶级工厂接口
 *
 * @author chentudong
 * @time 2019/3/24 20:07
 */
public interface BeanFactory {
    /**
     * 带 & 返回 FactoryBean
     */
    String FACTORY_BEAN_PREFIX = "&";

    /**
     * 获取对应的bean
     *
     * @param name name
     * @return Object
     * @throws BeansException BeansException
     */
    Object getBean(String name) throws BeansException;
}
